package com.xhystudy.limit.config;

import com.xhystudy.limit.aop.LimiterAop;
import com.xhystudy.limit.limiter.handler.LimiterHandler;
import com.xhystudy.limit.limiter.impl.FunnelLimiter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Author: Xhy
 * CreateTime: 2023-03-13 14:56
 * 设置LimiterHandler中设置具体限流实现类
 */
@Configuration
public class LimiterAutoConfig {


    @Bean
    public LimiterAop limiterAop(){
        return new LimiterAop();
    }
}
